package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockOutboundItem", catalog="Id")
public class TccStockOutboundItem extends BaseEntity<TccStockOutboundItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ControlId", nameJava="controlId", typeDataBase="bigint")
	private Long controlId;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="SourceBid", nameJava="sourceBid", typeDataBase="varchar")
	private String sourceBid;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockOutboundItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getControlId() {
		return controlId;
	}
	public TccStockOutboundItem setControlId(Long controlId) {
		this.controlId = controlId;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccStockOutboundItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TccStockOutboundItem setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TccStockOutboundItem setNum(Integer num) {
		this.num = num;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TccStockOutboundItem setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public String getSourceBid() {
		return sourceBid;
	}
	public TccStockOutboundItem setSourceBid(String sourceBid) {
		this.sourceBid = sourceBid;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockOutboundItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockOutboundItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockOutboundItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockOutboundItem tccStockOutboundItem(
		Long controlId,
		String pbid,
		String productCode,
		Integer num,
		String companyVid,
		String sourceBid,
		Integer status
			) {
		TccStockOutboundItem entity = new TccStockOutboundItem();
		entity.setControlId(controlId);
		entity.setPbid(pbid);
		entity.setProductCode(productCode);
		entity.setNum(num);
		entity.setCompanyVid(companyVid);
		entity.setSourceBid(sourceBid);
		entity.setStatus(status);
		return entity;
	}
}